const state = {
  isNotExpired: false, //是否 合伙人过期
  isMenber: false, // 是否 合伙人
  menberInfo: {}, //合伙人信息
  menberUrlParam: '',
  materialChoose: false,
  interviewList: {},
  interviewRecord: {},
  goodsPromotionList: {},
  goodsPromotionRecord: {}
}

const mutations = {
  /**
   * 合伙人
   */
  MENBER_IS (state, isMenber) {
    state.isMenber = isMenber;
  },
  MENBER_IS_NOT_EXPIRED (state, isNotExpired) {
    state.isNotExpired = isNotExpired;
  },
  MENBER_INFO (state, menberInfo) {
    state.menberInfo = menberInfo;
  },
  MENBER_URL_PARAM (state, menberUrlParam) {
    state.menberUrlParam = menberUrlParam;
  },
  MENBER_UPDATE (state, isMenber) {
    state.isMenber = true
    state.isNotExpired = true
  },
  /**
   * 素材
   */
  // 选择素材分类
  MATERIAL_CHOOSE (state, materialChoose) {
    state.materialChoose = materialChoose
  },
  // 邀请会员列表
  INTERVIEW_LOAD_INTERVIEW_LIST (state, interviewList) {
    state.interviewList = interviewList
  },
  // 邀请会员信息
  INTERVIEW_LOAD_INTERVIEW_RECORD (state, interviewRecord) {
    state.interviewRecord = interviewRecord
  },
  // 邀请课程推广列表
  LOAD_GOODS_PROMOTION_LIST (state, goodsPromotionList) {
    state.goodsPromotionList = goodsPromotionList
  },
  // 邀请课程推广信息
  LOAD_GOODS_PROMOTION_RECORD (state, goodsPromotionRecord) {
    state.goodsPromotionRecord = goodsPromotionRecord
  }
}

export default {
  state,
  mutations
}
